Repository navigation
Add --computed: computed-style diff and a dom identical signal - #30
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…m per element Tightens asset-hash normalization, bounds the in-page walk and the unmatched lines, and documents what the walk skips. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eporting Keys are disambiguated linearly per parent (duplicate ids included) and sorted classes stay out of pixel-mode selectors. display:none elements are snapshotted so a removed hiding rule is a display change. Height collapses toward the child that caused it. Truncation, accepted shots and snapshot failure reasons are reported; --selector walks only its subtree; asset-hash normalization matches hash-shaped tokens only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…et is the check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…9e9d4a # Conflicts: # skills/renderdiff/reference.md # src/cli.ts # src/config.ts # tests/unit/cli-args.test.ts
This was referenced Oct 29, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
--computed(configcomputed: true). After each shot it reads the computed style of every rendered element on both sides, then diffs them. It also reports whether the markup is identical. Pixels still decide the score and the exit code.What it does
locate.ts'sprobe, so it reusesPROPS,part()(hashed-class filter,nth-of-type) and the mask set.PROPSpluscontent, and::before/::afterwherever they generate content.display: nonesubtrees. Finishes script-started animations first;STILL_CSSalready stops CSS ones.computed: nullwithcomputedErrorsaying which.--selector, walks only the selected subtree, keyed from:scope.nth-of-typeonly when ambiguous), never by DOM index. An injected banner doesn't misalign the rest.width/heightwhen the parent resized too. Onebodyfont change is one finding.summary.computedin results.json holds all of them.::before/::afterthat only one side generates is acontent … → nonefinding, which is what a removed icon rule looks like.src/href/srcsetand generated class names. Each route showsdom identicalordom differs (N). When it differs, the summary calls the findings hints and lists unmatched elements separately.Values are left first (
left→right), the same asdom. With left as the change, a removed rule reads asvalue-without-rule→value-with-rule.Tests and docs
tests/unit/computed.test.tscovers collapse, pseudo, unmatched, hash normalization, grouping and format.tests/visual/controls.test.tsruns the/margin,/colorand/insertedfixtures.docs/output.md(new section), README,skills/renderdiff/SKILL.mdandreference.md, and the example config.Review fixes
:nth-of-typeis added whenever siblings share a step, duplicate ids included. Keys can't collide, so nothing is dropped. Class sorting applies only to the walk, so pixel-mode selectors and accepted fingerprints are unchanged.display: noneelement is snapshotted (its subtree isn't). A removed hiding rule becomes onedisplayfinding and doesn't count againstdom identical.widthchange collapses into its parent's; aheightchange collapses into the child that caused it.truncated) and shown.normalizeAssetsmatches only hash-shaped tokens.tests/visual/computed.test.tsdrives the walk on handmade pages: duplicate ids, sibling keys, injected nodes, a display toggle, a selector root, 10k siblings and pixel-mode selector order.Follow-ups (out of scope)
CSS.forcePseudoStateto snapshot:hover/:focus/:active.--all-propsto diff every property (non-default values only).<path>swaps currently read as dom identical).parentOfsplits keys on" > ", which can appear inside a quoted attribute value in a key.🤖 Generated with Claude Code